package com.fire.service;

import com.fire.model.entity.Monitor;

import java.util.List;

/**
 * ClassName: IAsyncService
 * Package: com.fire.service
 * Description:
 *
 * @Author: @weixueshi
 * @Create: 2024/3/29 - 0:37
 * @Version: v1.0
 */
public interface IAsyncService {
    /**
     * 发送邮箱消息
     */
    void sendMachineMail(String content);

    /**
     * 监测数据警告发送文本邮件
     *
     * @param content
     */
    void sendMonitorMail(String content);

    /**
     * 异步往f_smart表中将异常数据的位置信息做记录
     * @param warnMonitors
     */
    void saveSmartInfo(List<Monitor> warnMonitors);
}
